<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title th:text="${currentPath}"></title>
    <link rel="stylesheet" type="text/css" href="/style.css">
</head>
<body>
<div class="main_div">
    <div class="head_div">
        <div>
            <form class="path_form" action="/" method="post">
                <input class="path_input" type="text" name="path" th:value="${currentPath}"/>
                <input class="path_submit" type="submit" value="进入">
            </form>
        </div>
        <span>
            <a class="back_link" href="javascript:history.go(-1)">后退</a>
        </span>
        <span>
            <a class="front_link" href="javascript:history.go(1)">前进</a>
        </span>
        <span>
            <a class="parent_link" href="..">上一级</a>
        </span>
        <span class="folder_info_span" th:text="@{${#lists.size(webFileInfoList)} + '个项目'}"></span>
    </div>
    <div class="body_div">
        <div th:each="webFileInfo:${webFileInfoList}" th:switch="${webFileInfo.folder}">
            <img class="file_type_icon" th:case="true" src="/icon/folder" th:alt="${webFileInfo.fileType}">
            <img class="file_type_icon" th:case="false" th:src="@{'/icon/file?fileType=' + ${webFileInfo.fileType}}" th:alt="${webFileInfo.fileType}">
            <a class="file_info_link" th:href="@{${ROOT_NAME} + ${webFileInfo.uri}}" th:text="${webFileInfo.fileName}"></a>
        </div>
    </div>
</div>
</body>
</html>
